package com.git.bds.mr.hospital.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 医院信息表
 * </p>
 *
 * @author 成大事
 * @since 2022-09-19 16:42:52
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("hospital")
@ApiModel(value = "Hospital对象", description = "医院信息表")
public class Hospital extends Model<Hospital> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("医院联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("医院名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("医院地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("医院图片")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("医院简介")
    @TableField("aynopsis")
    private String aynopsis;


    public static final String ID = "id";

    public static final String PHONE = "phone";

    public static final String NAME = "name";

    public static final String ADDRESS = "address";

    public static final String AVATAR = "avatar";

    public static final String AYNOPSIS = "aynopsis";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
